# -*-coding:utf8

import os

'''
模块的作用：用来定义测试数据或者测试报告以及测试用例的路径
'''


# 获取当前文件的上级目录的绝对路径
file_path = os.getcwd()
# print(file_path)

common_path = os.path.split(os.path.realpath(__file__))[0]
# # 获取项目所在的绝对路径
project_path = os.path.split(os.path.dirname(common_path))[0]
# print(project_path)


# 获取测试数据的绝对路径
data_path = os.path.join(project_path, 'Data', 'TestData')
# print(data_path)

# 获取测试报告的绝对路径
report_path = os.path.join(project_path, 'report', 'TestReport')
# print(report_path)

AutoRun_path = os.path.join(project_path, 'run_all')
# print(AutoRun_path)

# 获取测试用例的绝对路径
testcase_patn = os.path.join(project_path, 'TestCase')
# print(testcase_patn)

# 获取img文件夹绝对路径
imgPath = os.path.join(AutoRun_path, 'img')
img_path = 'img'
# print (imgPath)

check_img_path = os.path.join(project_path, 'Data', 'check_img')
# print(check_img_path)
